<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>你好</h1>
<img src=""/>
<script>
    onload = function(){
        //
        var ajax = new XMLHttpRequest();
        ajax.open("get",'img/a436c380-ca87-11eb-9553-76b62a7545b1')
        ajax.send()
        ajax.onreadystatechange = function () {
            if (ajax.readyState==4 &&ajax.status==200) {
                //步骤五 如果能够进到这个判断 说明 数据 完美的回来了,并且请求的页面是存在的
                console.log(ajax.responseText);//输入相应的内容
            }
        }
    }
</script>
</body>
</html>